import { VagueOject, UrlModule, appUrl } from "@/types/common";

interface ConfigType {
    baseUrl: UrlModule<appUrl>
    apiList: UrlModule<VagueOject>,
    aliyunOss: { bucketUrl: string }
}

export const config: ConfigType = {
    aliyunOss: {
        bucketUrl: 'https://gwbao.oss-cn-beijing.aliyuncs.com'
    },
    baseUrl: {
        app: {
            devBaseUrl: "http://127.0.0.1:3000/app",
            prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
        },
        admin: {
            devBaseUrl: "http://127.0.0.1:3000/admin",
            prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
        }
    },
    apiList: {
        app: {
            articleList: "/article/articleList",
            articleInfo: "/article/info",
            pushComment: "/article/push_comment",
            linkList: "/link/list",
            categoriesList: "/article/categories_list",
            taglist:"/tag/list",
            userlogin:"/user/login",//登录
            userinfo:"/user/info",
            useradd:"/user/add",//注册
        },
        admin: {
            menuList: '/menu/list',
            aliyunToken: '/lib/aliyunToken',
            menuAdd: '/menu/add',
            essayadd:"/essay/add",//文章添加
            essaydelete:"/essay/delete",//文章删除
            essayupdata:"/essay/updata",//文章修改
            taghdselect:"/taghd/select",//标签查询
            taghdadd:"/taghd/add",//标签添加
            taghdupdata:"/taghd/updata",//标签修改
            taghddelete:"/taghd/delete",//标签删除
            taghdqueries:"/taghd/queries",//标签模糊查询
            classifyselect:"/classify/select",//类型查询
            classifyupdata:"/classify/updata",//类型修改
            classifydelete:"/classify/delete",//类型删除
            classifyadd:"/classify/add",//类型添加
            classifyqueries:"/classify/queries",//分类模糊查询
            menudelete: '/menu/delete',//菜单
            menuupdata: '/menu/updata',//菜单修改sions
            menusions: '/menu/sions'//菜单修改
            
        }
    }
}